<html>
    <%@page import="model.student"%>
    <head>
    <h1> college </h1>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>student</title>
    </head>
    <body style="background-image:url(325358_148852655208442_100002511247620_245551_1242039116_o.jpg);background-repeat:no-repeat;background-size:100%" >
        <% 
        HttpSession userSession = request.getSession(false);
        String name = userSession.getAttribute("name").toString();
        String ID = userSession.getAttribute("ID").toString();
        //String ID = request.getParameter("ID");
        String c1 = userSession.getAttribute("c1").toString();
        String c2 = userSession.getAttribute("c2").toString();
        String c3 = userSession.getAttribute("c3").toString();
        String c4 = userSession.getAttribute("c4").toString();
        String c5 = userSession.getAttribute("c5").toString();
        String c6 = userSession.getAttribute("c6").toString();
        String g1 = userSession.getAttribute("g1").toString();
        String g2 = userSession.getAttribute("g2").toString();
        String g3 = userSession.getAttribute("g3").toString();
        String g4 = userSession.getAttribute("g4").toString();
        String g5 = userSession.getAttribute("g5").toString();
        String g6 = userSession.getAttribute("g6").toString();
        
        %>
        <form action="Servlet" method="post"><input type="hidden" name="action" value="Add/Drop" />
        <div class="student" style="margin-left:35%">
        <table cellspacing="5" border="0">
            <tr>
                <td width="143" align="right"><b><font size="+2"color="red">Student info:</font><b></td>
            <td width="17"> </td><td width="163"><b> <font size="+2"color="red">Grades:</font></b></td>
        </tr>
        <tr>
            <td align="right">Student name:</td>
            <td><%=name%></td>
        </tr>
        <tr>
            <td align="right">ID:</td>
            <td><%=ID%></td>
        </tr>
        <tr>
            <td align="right">course1:</td>
            <td><%=c1%></td><td><%=g1%></td>
        </tr>
        <tr>
            <td align="right">course2:</td>
            <td><%=c2%></td><td><%=g2%></td>
        </tr>
        <tr>
            <td align="right">course3:</td>
            <td><%=c3%></td><td><%=g3%></td>
        </tr>
        <tr>
            <td align="right">course4:</td>
            <td><%=c4%></td><td><%=g4%></td>
        </tr>
        <tr>
            <td align="right">course5:</td>
            <td><%=c5%></td><td><%=g5%></td>
        </tr>
        <tr>
            <td align="right">course6:</td>
            <td><%=c6%></td><td><%=g6%></td>
        </tr>
         </table>
         </div>
         
        
      
                <input type="submit" value="Add/Drop">
        </form>
                <form action="Servlet" method="post"><input type="hidden" name="action" value="finaldoctorpage" />
                     <input type="submit" value="logout">
                </form>
  
    </body>
</html>